
package com.ryan.smile.model;

import android.os.Parcel;
import android.os.Parcelable;

public class TitleModel implements Parcelable {

    private long seek;
    private long lastSeek = -1;
    private long nextSeek = -1;
    private String title;
    private String desc;

    public TitleModel() {
    }

    public static final Parcelable.Creator<TitleModel> CREATOR = new Parcelable.Creator<TitleModel>() {
        public TitleModel createFromParcel(Parcel in) {
            return new TitleModel(in);
        }

        public TitleModel[] newArray(int size) {
            return new TitleModel[size];
        }
    };

    private TitleModel(Parcel in) {
        seek = in.readLong();
        lastSeek = in.readLong();
        nextSeek = in.readLong();
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(seek);
        dest.writeLong(lastSeek);
        dest.writeLong(nextSeek);
    }

    /**
     * @return the seek
     */
    public long getSeek() {
        return seek;
    }

    /**
     * @param seek the seek to set
     */
    public void setSeek(long seek) {
        this.seek = seek;
    }

    /**
     * @return the title
     */
    public String getTitle() {
        return title;
    }

    /**
     * @param title the title to set
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * @return the desc
     */
    public String getDesc() {
        return desc;
    }

    /**
     * @param desc the desc to set
     */
    public void setDesc(String desc) {
        this.desc = desc;
    }

    /**
     * @return the lastSeek
     */
    public long getLastSeek() {
        return lastSeek;
    }

    /**
     * @param lastSeek the lastSeek to set
     */
    public void setLastSeek(long lastSeek) {
        this.lastSeek = lastSeek;
    }

    /**
     * @return the nextSeek
     */
    public long getNextSeek() {
        return nextSeek;
    }

    /**
     * @param nextSeek the nextSeek to set
     */
    public void setNextSeek(long nextSeek) {
        this.nextSeek = nextSeek;
    }

}
